#include <libbase/StringUtil.h>
#include <iostream>

using namespace BASE;

void displayStrings(Strings & strs){
	for(size_t i = 0; i < strs.size(); ++i){
		std::cout << strs[i] << std::endl;
	}
}

int main(){
	std::string str1 = "/home/public/webdoc/aa/c";
	Strings strs = stringsplit(str1, "/");
	displayStrings(strs);

	std::string str2 = " cabc\n ";
	std::cout << ltrim(str2) << std::endl;
	std::cout << rtrim(str2) << std::endl;
	return 0;
}
